package com.perfect.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.perfect.vo.Post;
import com.perfect.vo.Product;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author YU
 */
@Getter
@Setter
public class OrdersModel {

    private Integer id;

    private String odId;

    private Post post;

    private String type;

    private Product product;

    private Integer goodsCount;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    private String userName;

    private String userPhone;

    private String userAddress;

    private String postCode;

    private String goodsPhoto;

    private String goodsName;

    private Integer goodsId;

    private Double goodsPrice;

    private Double postPrice;

    private Double couponPrice;

    private Double spend;

    private String payWay;

    private String odSource;

    private String odState;
}
